package com.java.model;

import lombok.Data;

/**
 * 封装统一响应数据格式
 */
@Data
public class ResultVO<T> {
    private Integer code;//响应代码
    private String msg;//响应信息
    private T data;//响应数据

    public ResultVO(){
        this.code = 1000;
        this.msg = "成功";
    }

    public ResultVO(T data){
        this();
        this.data = data;
    }

}
